package main

import (
	"gitee.com/mootok/mootok/src/storage/es"
	"gitee.com/mootok/mootok/src/utils/logging"
)

func main() {
	var err error
	logger := logging.LogService("EsClient.Init")

	err = es.VideoStore.CreateIndex(es.VideoMapping)

	if err != nil {
		logger.Fatalf("create index failed for videos: %v", err)
	}

}
